
var express = require('express');
var router = express.Router();
const drug = require('../../modules/drug.controller.js');
/* GET users listing. */
// Retrieve all Admin_group
// Retrieve all Admin_group by limit(default 10) and offset(default=0)
router.get("/", drug.findAll);

// Retrieve a single Admin_group with id
router.get("/:id", drug.findOne);

// Retrieve all Admin_group with attr and value
router.get("/:attr/:value", drug.findByAttr);


module.exports = router;
